import request from "@/utils/request";

// 查询报警阈值信息
export function getThreshold(deviceNo, channel) {
  return request({
    url: "/base/threshold/" + deviceNo + "/" + channel,
    method: "get",
  });
}

// 修改阈值
export function putThreshold(data) {
  return request({
    url: "/base/threshold",
    method: "put",
    data: data,
  });
}
//新增阈值
export function addThreshold(data) {
  return request({
    url: "/base/threshold",
    method: "post",
    data: data,
  });
}
